<!DOCTYPE html>
<html lang="zh-CN">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>仪表盘 - 数据库教学系统</title>
  <link rel="stylesheet" href="/src/style.css">
  <link rel="stylesheet" href="/node_modules/@fortawesome/fontawesome-free/css/all.min.css">
</head>
<body class="bg-gray-50">
  <div class="min-h-screen flex">
    <!-- 侧边栏 -->
    <aside class="w-64 bg-white shadow-md">
      <div class="p-4 border-b border-gray-200">
        <h2 class="text-xl font-bold text-gray-800">数据库教学系统</h2>
      </div>
      <nav class="p-4 space-y-2">
        <a href="/dashboard.html" class="nav-item active flex items-center">
          <i class="fas fa-home mr-3"></i>仪表盘
        </a>
        <a href="/courses.html" class="nav-item flex items-center">
          <i class="fas fa-book mr-3"></i>课程列表
        </a>
        <a href="/lab.html" class="nav-item flex items-center">
          <i class="fas fa-flask mr-3"></i>实验环境
        </a>
        <a href="/assignments.html" class="nav-item flex items-center">
          <i class="fas fa-tasks mr-3"></i>作业管理
        </a>
        <a href="/profile.html" class="nav-item flex items-center">
          <i class="fas fa-user mr-3"></i>个人资料
        </a>
      </nav>
    </aside>

    <!-- 主要内容区 -->
    <main class="flex-1 p-8">
      <div class="flex justify-between items-center mb-8">
        <h1 class="text-2xl font-bold text-gray-800">欢迎回来，张教授</h1>
        <div class="flex items-center space-x-4">
          <button class="btn btn-secondary">
            <i class="fas fa-bell mr-2"></i>
            <span class="bg-red-500 text-white text-xs rounded-full px-2 py-1">3</span>
          </button>
          <div class="flex items-center space-x-2">
            <img src="https://images.unsplash.com/photo-1472099645785-5658abf4ff4e?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=facearea&facepad=2&w=256&h=256&q=80" 
                 alt="用户头像" 
                 class="w-10 h-10 rounded-full">
            <span class="text-gray-700">张教授</span>
          </div>
        </div>
      </div>

      <!-- 统计卡片 -->
      <div class="grid grid-cols-1 md:grid-cols-3 gap-6 mb-8">
        <div class="card bg-blue-50 border-l-4 border-primary">
          <div class="flex items-center">
            <div class="p-3 bg-primary rounded-lg">
              <i class="fas fa-users text-white text-xl"></i>
            </div>
            <div class="ml-4">
              <h3 class="text-gray-600 text-sm">活跃学生</h3>
              <p class="text-2xl font-bold text-gray-800">128</p>
            </div>
          </div>
        </div>

        <div class="card bg-green-50 border-l-4 border-success">
          <div class="flex items-center">
            <div class="p-3 bg-success rounded-lg">
              <i class="fas fa-book-open text-white text-xl"></i>
            </div>
            <div class="ml-4">
              <h3 class="text-gray-600 text-sm">进行中的课程</h3>
              <p class="text-2xl font-bold text-gray-800">3</p>
            </div>
          </div>
        </div>

        <div class="card bg-yellow-50 border-l-4 border-warning">
          <div class="flex items-center">
            <div class="p-3 bg-warning rounded-lg">
              <i class="fas fa-clock text-white text-xl"></i>
            </div>
            <div class="ml-4">
              <h3 class="text-gray-600 text-sm">待批改作业</h3>
              <p class="text-2xl font-bold text-gray-800">15</p>
            </div>
          </div>
        </div>
      </div>

      <!-- 最近活动 -->
      <div class="card mb-8">
        <h2 class="text-xl font-bold text-gray-800 mb-4">最近活动</h2>
        <div class="space-y-4">
          <div class="flex items-start space-x-4">
            <div class="flex-shrink-0">
              <span class="w-8 h-8 rounded-full bg-blue-100 flex items-center justify-center">
                <i class="fas fa-edit text-primary"></i>
              </span>
            </div>
            <div class="flex-1">
              <p class="text-gray-800">学生李明提交了《数据库设计》课程的作业</p>
              <p class="text-sm text-gray-500">2分钟前</p>
            </div>
          </div>
          <div class="flex items-start space-x-4">
            <div class="flex-shrink-0">
              <span class="w-8 h-8 rounded-full bg-green-100 flex items-center justify-center">
                <i class="fas fa-check text-success"></i>
              </span>
            </div>
            <div class="flex-1">
              <p class="text-gray-800">完成了《SQL优化》实验课程的评分</p>
              <p class="text-sm text-gray-500">1小时前</p>
            </div>
          </div>
          <div class="flex items-start space-x-4">
            <div class="flex-shrink-0">
              <span class="w-8 h-8 rounded-full bg-yellow-100 flex items-center justify-center">
                <i class="fas fa-comment text-warning"></i>
              </span>
            </div>
            <div class="flex-1">
              <p class="text-gray-800">王老师在《数据库原理》课程中发表了新的评论</p>
              <p class="text-sm text-gray-500">2小时前</p>
            </div>
          </div>
        </div>
      </div>

      <!-- 课程进度 -->
      <div class="card">
        <h2 class="text-xl font-bold text-gray-800 mb-4">课程进度</h2>
        <div class="space-y-4">
          <div>
            <div class="flex justify-between mb-2">
              <span class="text-gray-700">数据库设计</span>
              <span class="text-sm text-gray-500">75%</span>
            </div>
            <div class="h-2 bg-gray-200 rounded-full">
              <div class="h-2 bg-primary rounded-full" style="width: 75%"></div>
            </div>
          </div>
          <div>
            <div class="flex justify-between mb-2">
              <span class="text-gray-700">SQL优化</span>
              <span class="text-sm text-gray-500">60%</span>
            </div>
            <div class="h-2 bg-gray-200 rounded-full">
              <div class="h-2 bg-primary rounded-full" style="width: 60%"></div>
            </div>
          </div>
          <div>
            <div class="flex justify-between mb-2">
              <span class="text-gray-700">数据库原理</span>
              <span class="text-sm text-gray-500">90%</span>
            </div>
            <div class="h-2 bg-gray-200 rounded-full">
              <div class="h-2 bg-primary rounded-full" style="width: 90%"></div>
            </div>
          </div>
        </div>
      </div>
    </main>
  </div>
</body>
</html>